package com.qyer.util.log.entity;

import com.qyer.util.log.util.MyDateUtil;

public class BaseLog {
	// 平台
	private String platform = "";
	//用户ip
	private String userIp="";
	//用户id
	private String userId = "";
	// 日志类型
	private String type = "";
	// 日志名称标记
	private String logName = ""; 
	// 日志版本
	private String logVersion = ""; 
	// 点击时间戳
	private String timeStamp = ""; 
	// 时间格式为 yyyy-MM-dd HH:mm:ss
	private String trackTime = "";
	// 小时时间
	private String hour="";
	
	private String userAgent =""; 
	
	private String extra= "";
	
	
	public String getPlatform() {
		return platform;
	}
	public void setPlatform(String platform) {
		this.platform = platform;
	}
	public String getUserIp() {
		return userIp;
	}
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getLogName() {
		return logName;
	}
	public void setLogName(String logName) {
		this.logName = logName;
	}
	public String getLogVersion() {
		return logVersion;
	}
	public void setLogVersion(String logVersion) {
		this.logVersion = logVersion;
	}
	public String getTrackTime() {
		return trackTime;
	}
	public void setTrackTime(String trackTime) {
		this.trackTime = trackTime;
	} 
	
	public String getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(String timeStamp) {
		String trackTime = MyDateUtil.getCurDate(timeStamp,"yyyy-MM-dd HH:mm:ss");
		this.setTrackTime(trackTime);
		String hour = MyDateUtil.getCurDate(timeStamp,"HH");
		this.hour=hour;
		this.timeStamp = timeStamp;
	}
	public String getUserAgent() {
		return userAgent;
	}
	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	public String getHour() {
		return hour;
	}
	public void setHour(String hour) {
		this.hour = hour;
	}
	public String getExtra() {
		return extra;
	}
	public void setExtra(String extra) {
		this.extra = extra;
	}
}
